package ch8;

import java.util.Scanner;

public class Z3103 {
    public static void main(String[] args) {
        double a=10;
        int b=0;
        double c=0;
        for (a=10;a>=0.01;) {
            c+=a;
            b++; 
            a = a * 0.8;
            c+=a;
        }
        //if (a<0.01){
            System.out.println("第"+b+"次");
            System.out.println("运动轨迹是："+c+"米");
        //}

    }
}
